package com.yanqu.road.entity.log.cross.sonhai;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

@FieldTypeAnnotation(tableName = "t_l_ck_son_hai_explore", desc = "山海伏兽-探索日志", autoSave = true, dataUpload = true, eventName = "mountsea_explore", uploadCk = true, isCross = true)
public class LogCrossSonHaiExplore extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", dataAttribute = "activityId", isIndex = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "分组ID", dataAttribute = "group_id", isIndex = true)
    private int groupId;

    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "队伍id", dataAttribute = "mountsea_team")
    private int teamId;

    @FieldTypeAnnotation(desc = "区域ID", dataAttribute = "mountsea_area")
    private int regionId;

    @FieldTypeAnnotation(desc = "坐标", dataAttribute = "mountsea_position")
    private String position;

    @FieldTypeAnnotation(desc = "消耗体力", dataAttribute = "mountsea_usephy")
    private int costEnergy;

    @FieldTypeAnnotation(desc = "当前体力值", dataAttribute = "mountsea_nowphy")
    private int currentEnergy;

    @FieldTypeAnnotation(desc = "探索到事件id", dataAttribute = "mountsea_type")
    private int eventId;

    @FieldTypeAnnotation(desc = "获得奖励", dataAttribute = "mountsea_get")
    private String reward;

    @FieldTypeAnnotation(desc = "获得积分", dataAttribute = "mountsea_getscore")
    private long score;

    @FieldTypeAnnotation(desc = "获得寻踪进度", dataAttribute = "mountsea_getplan")
    private long progress;

    @FieldTypeAnnotation(desc = "当前寻踪进度", dataAttribute = "mountsea_nowplan")
    private long currentProgress;

    public LogCrossSonHaiExplore(int activityId, int groupId, long userId, int teamId, int regionId, String position, int costEnergy, int currentEnergy, int eventId, String reward, long score, long progress, long currentProgress) {
        this.activityId = activityId;
        this.groupId = groupId;
        this.userId = userId;
        this.teamId = teamId;
        this.regionId = regionId;
        this.position = position;
        this.costEnergy = costEnergy;
        this.currentEnergy = currentEnergy;
        this.eventId = eventId;
        this.reward = reward;
        this.score = score;
        this.progress = progress;
        this.currentProgress = currentProgress;
    }

    @Override
    public long getUserId() {
        return userId;
    }

}
